drm/vc4: Add support for rendering with ETC1 textures.
authorEric Anholt <eric@anholt.net>
Fri, 4 Nov 2016 01:53:10 +0000 (18:53 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:28:46 +0000 (17:28 +0000)
commitc8a4e22d525ebc2a60c294e585d1a3100848d007
tree32cee3c31ea2b1aa577cd92a740f1e6e1f65fb25
parent06f8738ef3bd63f6c256451a71cdcfcefeea9f52
drm/vc4: Add support for rendering with ETC1 textures.

The validation for it ends up being quite simple, but I hadn't got
around to it before merging the driver.  For backwards compatibility,
we also need to add a flag so that the userspace GL driver can easily
tell if the kernel will allow ETC1 textures (on an old kernel, it will
continue to convert to RGBA8)

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 7154d76fedf549607afbc0d13db9aaf02da5cebf)
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_validate.c
include/uapi/drm/vc4_drm.h